<%- include('../includes/head.ejs')%>
</head>
<body>
    <%- include('../includes/navigation.ejs')%>
    <main>
        <h1><%= product.title %></h1>
        <hr>
        <div>
            <img src="<%= product.imageUrl %>" alt="<%= product.title%>">
        </div>
        <h2>
            <%= product.price %>
        </h2>
        <p>
            <%= product.description %>
        </p>
        <form action="/cart" method="POST">
          <button class="btn" type="submit">添加到购物车</button>
          <input type="hidden" name="productId" value="<%= product.id %>">
        </form>
    </main>
    <%- include('../includes/end.ejs')%>